/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class HomeHumidifier {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010030002';
    }

    get categoryName() {
        return '\u5bb6\u7528\u52a0\u6e7f\u5668';
    }

    getAchieveSettledHumidity(params) {
        return command({
            method: 'getAchieveSettledHumidity',
            methodId: 'U2eMaWyU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getBacklightBrightness(params) {
        return command({
            method: 'getBacklightBrightness',
            methodId: 'URPrgvkK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getChildLockSwitch(params) {
        return command({
            method: 'getChildLockSwitch',
            methodId: 'UsRchzXC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCurrentHumidity(params) {
        return command({
            method: 'getCurrentHumidity',
            methodId: 'UaMCfjvE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getFilterRemainTime(params) {
        return command({
            method: 'getFilterRemainTime',
            methodId: 'UHwwZRJw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getHumidity(params) {
        return command({
            method: 'getHumidity',
            methodId: 'UODeXyf9',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLightMode(params) {
        return command({
            method: 'getLightMode',
            methodId: 'U8OTQHIM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLightSwitch(params) {
        return command({
            method: 'getLightSwitch',
            methodId: 'UvxDpipn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSeparationAlarm(params) {
        return command({
            method: 'getSeparationAlarm',
            methodId: 'UfjZVosP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSprayMode(params) {
        return command({
            method: 'getSprayMode',
            methodId: 'UmaS3AcI',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSpraySwitch(params) {
        return command({
            method: 'getSpraySwitch',
            methodId: 'pqYhWwZR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSprayVolume(params) {
        return command({
            method: 'getSprayVolume',
            methodId: 'pWG01UhW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSterilizationSwitch(params) {
        return command({
            method: 'getSterilizationSwitch',
            methodId: 'U5sukkA5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pNnZEPxo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWarningToneSwitch(params) {
        return command({
            method: 'getWarningToneSwitch',
            methodId: 'U9KmRNVl',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWaterLevel(params) {
        return command({
            method: 'getWaterLevel',
            methodId: 'UnfcbC0z',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWaterShortageAlarm(params) {
        return command({
            method: 'getWaterShortageAlarm',
            methodId: 'UCb2x15m',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setBacklightBrightness(params) {
        return command({
            method: 'setBacklightBrightness',
            methodId: 'phEqKkkL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setChildLockSwitch(params) {
        return command({
            method: 'setChildLockSwitch',
            methodId: 'p3deou63',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setFilterToDefault(params) {
        return command({
            method: 'setFilterToDefault',
            methodId: 'pkp1q4sG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setHumidity(params) {
        return command({
            method: 'setHumidity',
            methodId: 'p1vFjxCr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setLightMode(params) {
        return command({
            method: 'setLightMode',
            methodId: 'pgh0mqIZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setLightSwitch(params) {
        return command({
            method: 'setLightSwitch',
            methodId: 'pDrhFbld',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSprayMode(params) {
        return command({
            method: 'setSprayMode',
            methodId: 'pZgRTycC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSpraySwitch(params) {
        return command({
            method: 'setSpraySwitch',
            methodId: 'ppAXIOhw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSprayVolume(params) {
        return command({
            method: 'setSprayVolume',
            methodId: 'pUPQ8j0U',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSprayVolumePercentage(params) {
        return command({
            method: 'setSprayVolumePercentage',
            methodId: 'pGoxHGvA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSterilizationSwitch(params) {
        return command({
            method: 'setSterilizationSwitch',
            methodId: 'pdN7zsaV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3nfFP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setWarningToneSwitch(params) {
        return command({
            method: 'setWarningToneSwitch',
            methodId: 'ptRS91VS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setWaterShortageThreshold(params) {
        return command({
            method: 'setWaterShortageThreshold',
            methodId: 'pj7xBmR1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default HomeHumidifier;
